"""add robot tag field

Revision ID: add_robot_tag_field
Revises: 8358f5338d96
Create Date: 2025-01-19 17:05:00.000000

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'add_robot_tag_field'
down_revision = '8358f5338d96'
branch_labels = None
depends_on = None


def upgrade():
    # 为ding_talk_robot表添加tag字段
    op.add_column('ding_talk_robot', sa.Column('tag', sa.String(100), nullable=False, server_default='默认群组'))


def downgrade():
    # 删除tag字段
    op.drop_column('ding_talk_robot', 'tag') 